package com.uroad.jilinpda.modle;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * @创建者 wlw
 * @创建时间 2019/6/17 15:25
 * @描述 obu车辆信息mdl
 */
public class OBUVehicleInfoMDL implements Serializable {
    private String plateNo;//车牌号
    private String plateColor;//车牌颜色
    private String carType;//车型
    private String carUserType;//车辆用户类型
    private String carSize;//车辆尺寸 (客车：2x1x1 货车：2x2x2)
    private String wheelNum;//车轮数
    private String axlesNum;//车轴数
    private String wheelBase;//轴距
    private String load;//车辆载重（人）/座位数（kg）
    private String vehicleFeature;//车辆特征描述
    private String EngineNo;//发动机号

    //货车车辆信息结构变动 新加了货车的车辆信息结构
    private String approvedQuality;//车辆核定载质量/准牵引总质量
    private String curbQuality;//整备质量
    private String grossQuality;//车辆总质量
    private String loadNum;//核定载人数
    private String identificationCode;//车辆识别代号
    private String characterDescription;//车辆特征描述


    public String getPlateNo() {
        return plateNo == null ? "" : plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public String getPlateColor() {
        String color = plateColor;
        if (TextUtils.isEmpty(plateColor)) {
            return "";
        }
        switch (plateColor.substring(plateColor.length() - 1)) {
            case "0":
                color = "蓝色";
                break;
            case "1":
                color = "黄色";
                break;
            case "2":
                color = "黑色";
                break;
            case "3":
                color = "白色";
                break;
            case "4":
                color = "渐变绿色";
                break;
            case "5":
                color = "黄绿双拼色";
                break;
            case "6":
                color = "蓝白渐变色";
                break;
        }
        return color;
    }

    public void setPlateColor(String plateColor) {
        this.plateColor = plateColor;
    }

    public String getCarType() {
        if (TextUtils.isEmpty(carType)) {
            return "";
        }
        switch (carType) {
//            case "00":
            case "01":
                return "一型客车";
            case "02":
                return "二型客车";
            case "03":
                return "三型客车";
            case "04":
                return "四型客车";
            case "05":
                return "五型客车";
            case "06":
                return "六型客车";
            case "11":
                return "一型货车";
            case "12":
                return "二型货车";
            case "13":
                return "三型货车";
            case "14":
                return "四型货车";
            case "15":
                return "五型货车";
            case "16":
                return "六型货车";
            case "0B":
                return "一型货车";
            case "0C":
                return "二型货车";
            case "0D":
                return "三型货车";
            case "0E":
                return "四型货车";
            case "0F":
                return "五型货车";
            case "10":
                return "六型货车";
        }
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarUserType() {
        if (TextUtils.isEmpty(carUserType)) {
            return "";
        }
        switch (carUserType) {
            case "00":
                return "普通车";
            case "01":
                return "普通车";
            case "06":
                return "公务车";
            case "08":
                return "军警车";
            case "10":
                return "紧急车";
            case "12":
                return "免费车";
            case "13":
                return "紧急车";
            case "14":
                return "车队";
            case "15":
                return "绿通车";
            case "16":
                return "联合收割机";
            case "17":
                return "抢险救灾";
            case "18":
                return "集装箱（仅货运）J1";
            case "19":
                return "大件运输车";
            case "0E":
                return "车队";
            case "1B":
                return "其他牵引车";
            case "1A":
                return "应急救援车";
            case "1C":
                return "集装箱（非仅货运）J2";
            case "0C":
                return "免费车";
        }
        return carUserType;
    }

    public void setCarUserType(String carUserType) {
        this.carUserType = carUserType;
    }

    public String getCarSize() {
        return carSize == null ? "" : carSize;
    }

    public void setCarSize(String carSize) {
        this.carSize = carSize;
    }

    public String getWheelNum() {
        return wheelNum == null ? "" : wheelNum;
    }

    public void setWheelNum(String wheelNum) {
        this.wheelNum = wheelNum;
    }

    public String getAxlesNum() {
        return axlesNum == null ? "" : axlesNum;
    }

    public void setAxlesNum(String axlesNum) {
        this.axlesNum = axlesNum;
    }

    public String getWheelBase() {
        return wheelBase == null ? "" : wheelBase;
    }

    public void setWheelBase(String wheelBase) {
        this.wheelBase = wheelBase;
    }

    public String getLoad() {
        return load == null ? "0" : load;
    }

    public void setLoad(String load) {
        this.load = load;
    }

    public String getVehicleFeature() {
        return vehicleFeature == null ? "" : vehicleFeature;
    }

    public void setVehicleFeature(String vehicleFeature) {
        this.vehicleFeature = vehicleFeature;
    }

    public String getEngineNo() {
        return EngineNo == null ? "" : EngineNo;
    }

    public void setEngineNo(String engineNo) {
        EngineNo = engineNo;
    }

    public String getApprovedQuality() {
        return approvedQuality == null ? "" : approvedQuality;
    }

    public void setApprovedQuality(String approvedQuality) {
        this.approvedQuality = approvedQuality;
    }

    public String getCurbQuality() {
        return curbQuality == null ? "" : curbQuality;
    }

    public void setCurbQuality(String curbQuality) {
        this.curbQuality = curbQuality;
    }

    public String getGrossQuality() {
        return grossQuality == null ? "" : grossQuality;
    }

    public void setGrossQuality(String grossQuality) {
        this.grossQuality = grossQuality;
    }

    public String getLoadNum() {
        return loadNum == null ? "" : loadNum;
    }

    public void setLoadNum(String loadNum) {
        this.loadNum = loadNum;
    }

    public String getIdentificationCode() {
        return identificationCode == null ? "" : identificationCode;
    }

    public void setIdentificationCode(String identificationCode) {
        this.identificationCode = identificationCode;
    }

    public String getCharacterDescription() {
        return characterDescription == null ? "" : characterDescription;
    }

    public void setCharacterDescription(String characterDescription) {
        this.characterDescription = characterDescription;
    }
}
